package appapi.service;

import appapi.Request.OrganizaPageReq;
import appapi.entity.Zhongjiao.CompanyDto;
import appapi.entity.Zhongjiao.OrganizationDto;
import appapi.entity.Zhongjiao.ProjectDto;
import appapi.entity.basic.UserInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/23 10:50
 * @description:
 */
@Repository
public interface IOrganization {

    List<Map<String, Object>> SelectOrganizationPage(OrganizaPageReq projReq);

    Map<String, Object> SelectOrgDetail(Long orgaId);

    OrganizationDto detail(Long orgaId);

    void InsertOrganization(OrganizationDto dto);

    void UpdateOrganization(OrganizationDto dto);

    void DelOrganization(Long orgaId);

    List<Map<String, Object>> SelectOrgTree(UserInfo user,Long orgaPid);

    List<CompanyDto> GetCompanyByOrgaId(Long orgaId);

    List<ProjectDto> GetProjByOrgaId(Long orgaId);

    Long addOrga(OrganizationDto orgaDto);

    void updateOrga(OrganizationDto orgaDto);
}
